import Vue from 'vue'
import App from './App.vue'
import router from '@/router/index.js'
import store from './store'
import 'amfe-flexible'

import '@/utils/vant'
import 'vant/lib/index.css'

// 导入全局样式
import './styles/base.less'
import './styles/index.less'
import moment from 'moment'

// 全局过滤器  参数1 过滤器名字  参数2：过滤器函数
Vue.filter('fromNow', time => moment(time).fromNow())
// 中文
moment.locale('zh-cn')

Vue.config.productionTip = false

function fn() {}

fn()

new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount('#app')
